package org.sgx.gwtsjcl.client;

import com.google.gwt.core.client.JavaScriptObject;
/**
 * Hash functions. Right now only SHA256 is implemented. 
 * @author sg
 *
 */
public class Hash extends JavaScriptObject {
protected Hash(){}
/**
 * Secure Hash Algorithm, 256 bits. 
 * @return
 */
public native final HashSha256 sha256() /*-{
return this["sha256"]; 
}-*/;

/**
 * Secure Hash Algorithm, 256 bits. 
 * @param val
 * @return this - for setter chaining
 */
public native final Hash sha256(HashSha256 val) /*-{
this["sha256"] = val; 
return this; 
}-*/;
}
